import re
from urllib import request

class Spider():
  url = 'https://www.panda.tv/cate/lol'
  root_pattern = '<div class="video-info">[\s\S]*?</div>'
  
  def __fetch_html(self):
    v = request.urlopen(Spider.url)
    htmls = v.read()
    htmls = str(htmls, encoding='utf-8')
    return htmls

  def __any(self, htmls):
    root_html = re.findall(Spider.root_pattern, htmls)
    print(root_html[0])

  def go(self):
    htmls = self.__fetch_html()
    self.__any(htmls)

spider = Spider()
spider.go()
